US Stock Price Scraper avatar

US Stock Price Scraper

Pricing

Pay per event

Go to Apify Store
US Stock Price Scraper

US Stock Price Scraper

Download historical OHLCV stock price data (open, high, low, close, volume, dividends, splits) for US stocks, ETFs, and indices from Yahoo Finance. Supports any ticker, any interval (1m to 1mo), and any date range.

Pricing

Pay per event

Rating

0.0

(0)

Developer

BowTiedRaccoon

BowTiedRaccoon

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Categories

Share

Download historical OHLCV (open, high, low, close, volume) stock price data for US stocks, ETFs, and indices from Yahoo Finance. Supports any ticker symbol, any interval from 1 minute to 1 month, and any date range going back decades. Includes dividends and stock splits.

What you get

Each record in the dataset contains:

FieldDescription
tickerTicker symbol (e.g. AAPL, SPY, ^GSPC)
dateTrading date in YYYY-MM-DD format
datetimeFull ISO timestamp (intraday intervals only)
openOpening price
highHighest price during the interval
lowLowest price during the interval
closeClosing price
adj_closeAdjusted close (accounts for splits and dividends)
volumeShares traded during the interval
dividend_amountDividend paid on this date, or null
split_ratioSplit ratio as a string (e.g. "2:1"), or null
currencyTrading currency (e.g. USD)
exchangeExchange name (e.g. NMS, PCX)
intervalData interval used (e.g. 1d, 1wk)
source_urlYahoo Finance history URL for the ticker

How to use

Basic run

  1. Set Tickers to one or more symbols: ["AAPL", "SPY", "MSFT"]
  2. Choose an Interval (1d for daily, 1wk for weekly, etc.)
  3. Choose a Range (1mo, 1y, 5y, etc.) or set a custom Start Date / End Date
  4. Enable Include Events to get dividends and stock split data alongside OHLCV rows

Input parameters

ParameterTypeDescriptionDefault
tickersarrayList of ticker symbols (required)["AAPL", "SPY", "MSFT"]
intervalstringPrice interval: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo1d
rangestringShortcut range: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max1mo
startDatestringCustom start date YYYY-MM-DD — overrides range when used with endDate
endDatestringCustom end date YYYY-MM-DD
includeEventsbooleanInclude dividends and stock splits in the outputtrue
maxItemsintegerTotal record cap across all tickers. 0 = unlimited0

Example inputs

Last month of Apple daily OHLCV:

{
"tickers": ["AAPL"],
"interval": "1d",
"range": "1mo"
}

5-year weekly data for a portfolio:

{
"tickers": ["AAPL", "MSFT", "GOOGL", "AMZN", "TSLA"],
"interval": "1wk",
"range": "5y",
"includeEvents": true
}

Custom date range for S&P 500:

{
"tickers": ["^GSPC"],
"interval": "1d",
"startDate": "2020-01-01",
"endDate": "2021-12-31",
"includeEvents": false
}

Intraday 1-hour bars:

{
"tickers": ["SPY"],
"interval": "1h",
"range": "5d"
}

Supported tickers

Any ticker listed on Yahoo Finance works, including:

  • US stocks: AAPL, MSFT, TSLA, NVDA
  • ETFs: SPY, QQQ, IWM, GLD
  • Indices: ^GSPC (S&P 500), ^DJI (Dow Jones), ^IXIC (NASDAQ)
  • Crypto (via Yahoo Finance): BTC-USD, ETH-USD

Notes

  • Intraday data (1m1h intervals) is only available for approximately the last 60 days; requesting longer ranges for intraday will return whatever is available.
  • Data is sourced directly from the Yahoo Finance chart API. All prices reflect Yahoo Finance's data as of the time of the run.
  • Stock prices before splits are not adjusted in the close field, but adj_close applies all historical splits and dividends.